package cn.hesion.innerclass;

import java.net.SocketTimeoutException;
import java.security.PublicKey;
import java.util.Stack;

public class Outter {
    //成员变量
    private int age = 18;
    private String name = "zs";
    final int i=1;

    static class Inner{
        private String msg = "hello Inner class";
        public void test(){

        }
    }

    public Inner fun(){

        Inner inner = new Inner();
        System.out.println(inner.msg);
        return inner;
    }

    public void InnterClass(String name){
        int a=13;
         class MethodInner{

             void test(){
                 System.out.println(a);
             }
         }
        MethodInner methodInner = new MethodInner();
         methodInner.test();
    }
}
